package com.sanploy.fed.push;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.embedded.MultipartConfigFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.multipart.MultipartResolver;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;

import javax.servlet.MultipartConfigElement;

/**
 * Created by apple on 9/14/15.
 */
@SpringBootApplication
@EnableTransactionManagement
@EnableAutoConfiguration
public class Application {
    /**
     * 配置spring boot运行的主函数
     * @param args
     */

//    @Bean
//    MultipartConfigElement multipartConfigElement(){
//        MultipartConfigFactory factory = new MultipartConfigFactory();
//        factory.setLocation("/home/fed/push/resource");
//        return factory.createMultipartConfig();
//    }

    public static void main(String[] args) {

        SpringApplication.run(Application.class, args);
    }

}
